Skip to content

feat(website): make the docs site visible + complete the favicon set#52

Merged
heggria merged 1 commit into
mainfrom
feat/docs-site-visibility
Jul 6, 2026
Merged

feat(website): make the docs site visible + complete the favicon set#52
heggria merged 1 commit into
mainfrom
feat/docs-site-visibility

Conversation

@heggria

@heggria heggria commented Jul 6, 2026

Copy link
Copy Markdown
Owner

Three fixes that were under-served by the release-prep work.

1. README → docs site CTA (the main ask)

The docs site (heggria.github.io/taskflow) was invisible from the README — the top badge row had npm / license / CI badges but no link to the site we built. Add a prominent for-the-badge "📖 Read the docs" CTA between the language switcher and the tagline, in both:

  • README.md…/taskflow/en
  • README.zh-CN.md…/taskflow/zh-cn

It's the only for-the-badge badge in the header (the rest are flat-square), so it visually pops.

2. Complete the favicon / icon set

The site had only favicon.svg — and worse, favicon.svg was 404ing on GitHub Pages. Under output: export + basePath, Next.js doesnt prefix <link rel="icon"> / <link rel="manifest">, so the browser requested /favicon.svg instead of /taskflow/favicon.svg.

Add Purpose
app/icon.tsx ImageResponse PNG (180²) — canonical browser-tab icon (Safari prefers PNG over SVG)
app/apple-icon.tsx ImageResponse PNG (180²) — iOS "Add to Home Screen" / Safari pinned tab
app/manifest.ts PWA manifest — theme color, any + maskable icons, install support
layout.tsx Read TASKFLOW_BASE_PATH and prefix icon/manifest paths explicitly (the real fix for the 404); add themeColor, appleWebApp

All three new routes export const dynamic = "force-static" (required under output: export). Icons reuse the orange-tile + white-DAG brand motif (same as favicon.svg / opengraph-image / plugin icons).

Verified: build emits /icon, /apple-icon, /manifest.webmanifest with correct /taskflow-prefixed paths in both the HTML <link>s and the manifest body; icons are valid 180² RGBA PNGs. Pages 86 → 89.

3. Fix CHANGELOG duplicate heading (spotted by @heggria)

The release-prep edit accidentally renamed the existing [0.1.5] heading to a second [0.1.6] (the defineFile/JSONC insertion used it as an anchor). Restored — now exactly one 0.1.6 and one 0.1.5, in descending order.

Checks

  • pnpm test — 1140/1140
  • pnpm run typecheck — 0 errors
  • TASKFLOW_BASE_PATH=/taskflow pnpm run build — 89/89 pages, icons + manifest emitted with correct basePath

Two things that got under-served by the release-prep work:

1. README → docs site CTA. The docs site (heggria.github.io/taskflow)
   was invisible from the README — the top badge row had npm/license/CI
   badges but no link to the site we built. Add a prominent
   for-the-badge '📖 Read the docs' CTA between the language switcher
   and the tagline, in both README.md (→ /en) and README.zh-CN.md (→
   /zh-cn). It's the only for-the-badge badge in the header, so it pops.

2. Complete favicon / icon set. The site had only favicon.svg, and
   worse: under output:export + basePath, Next.js doesn't prefix
   <link rel=icon>/<link rel=manifest>, so favicon.svg was 404'ing on
   GitHub Pages (/favicon.svg vs the real /taskflow/favicon.svg). Fix:
   - app/icon.tsx + app/apple-icon.tsx: ImageResponse PNGs (180²) reusing
     the orange-tile + white-DAG brand motif (same as favicon.svg /
     opengraph-image / plugin icons).
   - app/manifest.ts: PWA manifest (theme color, any + maskable icons).
   - layout.tsx: read TASKFLOW_BASE_PATH and prefix icon/manifest paths
     explicitly (the real fix for the 404); add themeColor, appleWebApp.
   - all three new routes export dynamic='force-static' (output:export).
   Verified build emits /icon, /apple-icon, /manifest.webmanifest with
   correct /taskflow-prefixed paths; icons are valid 180² RGBA PNGs.

3. Fix CHANGELOG: the release-prep edit accidentally renamed the
   existing [0.1.5] heading to a second [0.1.6] (the defineFile/JSONC
   insertion used it as an anchor). Restore 0.1.5 — now exactly one
   0.1.6 and one 0.1.5, in descending order.
@heggria heggria merged commit 04c587d into main Jul 6, 2026
6 checks passed
@heggria heggria deleted the feat/docs-site-visibility branch July 6, 2026 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant